package com.psl.action.delete;

import com.psl.services.work.list.spendmoney;
import org.apache.struts2.ServletActionContext;

import javax.servlet.http.HttpServletRequest;

public class delmoney {
    public String execute() {
        HttpServletRequest request = ServletActionContext.getRequest();
        int id = Integer.parseInt(request.getParameter("id"));
        spendmoney sm = new spendmoney();
        sm.del(id);
        sm.moneylistAll();
        return "success";
    }
}
